//
//  MobChannelEditController.h
//  ebook
//
//  Created by 吴超飞 on 2016/11/26.
//  Copyright © 2016年 Moton. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ChannelUnitModel.h"

#define ChannelPlistFilePath [[NSBundle mainBundle] pathForResource:@"mobcpuinfo" ofType:@"plist"]//默认配置
#define UserChannelPlistFilePath [PATH_OF_DOCUMENT stringByAppendingPathComponent:@"selfmobinfo.plist"]

@interface MobChannelEditController : UIViewController

-(id)initWithTopDataSource:(NSArray<ChannelUnitModel *> *)topDataArr andBottomDataSource:(NSArray<ChannelUnitModel *> *)bottomDataSource andInitialIndex:(NSInteger)initialIndex;

/**
 * @b 编辑后, 删除初始选中项排序的回调
 */
@property (nonatomic, copy) void(^removeInitialIndexBlock)(NSMutableArray<ChannelUnitModel *> *topArr, NSMutableArray<ChannelUnitModel *> *bottomArr);

/**
 * @b 选中某一个频道回调
 */
@property (nonatomic, copy) void(^chooseIndexBlock)(ChannelUnitModel *selectModel, NSMutableArray<ChannelUnitModel *> *topArr, NSMutableArray<ChannelUnitModel *> *bottomArr);

@end
